import 'package:flutter/cupertino.dart';

class DragModel {
  late String title;
  late int value;
  late List<String> childList;

  DragModel(
      {required this.childList, required this.title, required this.value});

  DragModel.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    value = json['value'];
    childList = json['childList'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['title'] = title;
    data['value'] = value;
    data['childList'] = childList;

    return data;
  }
}
